package com.ruoyi.bus.service.impl;

import com.ruoyi.bus.mapper.DataMapper;
import com.ruoyi.bus.service.IDataService;
import com.ruoyi.common.core.controller.BaseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author caiyanshan
 * @Date 2021/6/3 14:48
 * @Param
 * @Return
 */
@Slf4j
@Service
public class DataServiceImpl extends BaseService implements IDataService {

  @Autowired
  private DataMapper dataMapper;

  public int getRouteCount(){
    return dataMapper.getRouteCount();
  }
  
  public int getBusCount(){
    return dataMapper.getBusCount();
  }
  
  public int getDriverCount(){
    return dataMapper.getDriverCount();
  }
  
  public int getUserCount(){
    return dataMapper.getUserCount();
  }
  
  public int getPlanCountByDays(){
    return dataMapper.getPlanCountByDays();
  }
  
  public List<Map<String, Object>> listAppointByDays(Integer day){
    return dataMapper.listAppointByDays(day);
  }
  
  public List<Map<String, Object>> listSecondDeptByUsers(){
    return dataMapper.listSecondDeptByUsers();
  }
  
  public List<Map<String, Object>> listPlanByDays(Integer day){
    return dataMapper.listPlanByDays(day);
  }
  
  public List<Map<String, Object>> listRouteByDays(Integer day){
    return dataMapper.listRouteByDays(day);
  }
  
  public int getUserNotRegister(){
    return dataMapper.getUserNotRegister();
  }
  
  public int getTodayAppointCount(){
    return dataMapper.getTodayAppointCount();
  }
  
  public int getTodayAppointOverCount(){
    return dataMapper.getTodayAppointOverCount();
  }
  
  public int getPlanCountOverByDays(){
    return dataMapper.getPlanCountOverByDays();
  }
  
  public int getTodayAppointCountByCreateTime(){
    return dataMapper.getTodayAppointCountByCreateTime();
  }
  
  public List<Map<String, Object>> listAppointCountByDept(){
    return dataMapper.listAppointCountByDept();
  }
  
  public List<Map<String, Object>> listMaxRouteByAppointTop10(){
    return dataMapper.listMaxRouteByAppointTop10();
  }
  
  public List<Map<String, Object>> listMinRouteByAppointTop10(){
    return dataMapper.listMinRouteByAppointTop10();
  }
  
  public List<Map<String, Object>> listMaxUserByAppointTop50(){
    return dataMapper.listMaxUserByAppointTop50();
  }
  
  public List<Map<String, Object>> listMaxDriverUserByPlanTop50(){
    return dataMapper.listMaxDriverUserByPlanTop50();
  }
}
